<?php $view->extend('layout_admin.php') ?>

<section class="content-header">
    <h1>
        Vaccin
        <small>Liste</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Vaccin</a></li>
        <li class="active">Liste</li>
    </ol>
</section>

<div class="row">
    <div class="col-12">
       <table class="table table-hover">
          <thead>
            <tr>
              <th>Camps</th>
              <th>Maladie</th>
              <th>Quantité</th>
            </tr>
          </thead>
          <tbody>
            <?php 
                foreach ($vaccins as $p) {
             ?>
                <tr>
                  <td><?php echo 'Pays : '.$p->getCamp()->getPays()->getNom().' '.$p->getCamp()->getVille() ?></td>
                  <td><?php echo $p->getMaladie()->getNom(); ?></td>
                  <td><?php echo $p->getQuantiteVaccin() ?></td>
                </tr>
             <?php
                }
            ?>
          </tbody>
        </table>
    </div>
</div>
